Form Element
An HTML DOM form element.
Provides access to the contained control elements and the attributes of the form element.
Properties
Link copied to clipboard
Returns HTML attributes of this element.
Link copied to clipboard
Returns the next node in the document tree, if any.
Link copied to clipboard
Returns the previous node in the document tree, if any.
Link copied to clipboard
Returns XPathExpression that represents path to this Node, or an empty expression if it is not available.
Functions
Link copied to clipboard
Adds the given
listener
to the event target.Link copied to clipboard
Adds the given
node
as a child of the current node to the end of its children list.Link copied to clipboard
Returns HTML attributes of this element.
Link copied to clipboard
Returns the rectangle bounds of the element and its position relative to the top-left of the viewport of the current document.
Link copied to clipboard
Compares position of the current node against another node in a DOM tree.
Link copied to clipboard
Returns an immutable list of the form controls or an empty list if the form got no controls on it.
Link copied to clipboard
Evaluates the given XPath
expression
for the node and returns the XPathResult
of the ANY type.Evaluates the given XPath
expression
for the node and returns the XPathResult
object of the given type
.Link copied to clipboard
Evaluates the given expression for the node and returns XPathResult of the XPathResultType.ANY type.
Evaluates the given expression for the node and returns XPathResult of the given type.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the first Element found in the current search context by the given cssSelector, if any.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the first Element object found in the current search context by the given
className
.Link copied to clipboard
Returns the first Element object found in the current search context by the given
cssSelector
.Link copied to clipboard
Returns the first Element object found in the current search context by the given
id
.Link copied to clipboard
Returns the first Element object found in the current search context by the given
name
.Link copied to clipboard
Returns the first Element object found in the current search context by the given
tagName
.Link copied to clipboard
Returns an immutable list of the Element objects found in the current search context by the given
className
.Link copied to clipboard
Returns an immutable list of the Element objects found in the current search context by the given
cssSelector
.Link copied to clipboard
Returns an immutable list of the Element objects found in the current search context by the given
id
.Link copied to clipboard
Returns an immutable list of the Element objects found in the current search context by the given
name
.Link copied to clipboard
Returns an immutable list of the Element objects found in the current search context by the given
tagName
.Link copied to clipboard
Link copied to clipboard
Returns the first Element found in the current search context by the given cssSelector.
Link copied to clipboard
Link copied to clipboard
Inserts the given
node
before the given beforeNode
as a child of the current node.Link copied to clipboard
Returns an
Optional
that contains the next node in the document tree if such a node exists, otherwise returns an empty Optional
.Link copied to clipboard
Returns an
Optional
that contains the previous node in the document tree if such a node exists, otherwise returns an empty Optional
.Link copied to clipboard
Removes the given
childNode
of the current node from the DOM.Link copied to clipboard
abstract fun removeEventListener(eventType: EventType, listener: Observer<Event>, useCapture: Boolean)
Removes the given
listener
from the event target.Link copied to clipboard
Replaces the given child
oldNode
of the current node with the given newNode
.Link copied to clipboard
Scrolls the element's parent container such that the element on which this method is called is visible to the user.
Link copied to clipboard
Returns the text content of the current node and its descendants.
Removes all the current node children and replaces them with a single text node with the given
textContent
.